From bf612a1cf35543fc1c9651f15994abdf43ddba73 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Fri, 1 Sep 2006 11:42:51 -0400 Subject: [PATCH] [POWERPC][XEN] Erratum: Must clear larx/stcx reservation on exception PowerPC 970 Erratum that an "OS should execute a stcx in the interrupt handler to clear the reservation." Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/powerpc64/exceptions.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/powerpc/powerpc64/exceptions.S b/xen/arch/powerpc/powerpc64/exceptions.S index acda124b75..4c54be7760 100644 --- a/xen/arch/powerpc/powerpc64/exceptions.S +++ b/xen/arch/powerpc/powerpc64/exceptions.S @@ -115,6 +115,9 @@ LOAD_GPRS "(\from+1)", \to, \uregs mfspr r0, SPRN_HSPRG1 std r0, UREGS_r13(r1) /* save R13 from HSPRG1 */ + /* Blow away any reservation according to 970 errata after saving CR */ + stdcx. r1, 0, r1 + /* done with processor_area; re-enable MSR:RI */ mfmsr r0 ori r0, r0, MSR_RI@l -- 2.30.2